package com.yami.shop.nft.common.listener;

import com.yami.shop.bean.event.TryLockNftEvent;
import com.yami.shop.bean.vo.AirdropRecordVo;
import com.yami.shop.nft.common.service.NftDawService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component("tryLockNftListener")
@AllArgsConstructor
public class TryLockNftListener {

    @Autowired
    private NftDawService nftDawService;


    @EventListener(TryLockNftEvent.class)
    public void tryLockNft(TryLockNftEvent event) {
        AirdropRecordVo airdropRecordVo = event.getAirdropRecordVo();
        String dawDenomId = airdropRecordVo.getDawDenomId();
        Integer num = airdropRecordVo.getNum();
    }
}
